home *** CD-ROM | disk | FTP | other *** search
Makefile | 2000-10-06 | 2.4 KB | 80 lines | [TEXT/MPS ] |
-
- NOTE: This makefile does not work! I simply don't know enough Linux dev yet.
- You're welcome to help out to update this file to match the MPW makefile
- Send me the result if you do.
-
- #------------------------------------------------------------------------------
- #
- # Makefile for GNU make
- #
- # Project: BlitPixie
- #
- # Written by: Anders F Björklund <afb@algonet.se>
- #
- #------------------------------------------------------------------------------
-
- all: BlitPixie BlitPixieLib
-
- #------------------------------------------------------------------------------
- # Choose your tools and libraries:
-
- SHELL = /bin/sh
- CC = cc
- CFLAGS = -O2 -Wall -W -DUSE_ASSEMBLY=0
- AR = ar
-
- #------------------------------------------------------------------------------
-
- LIB = libBlitPixie.a
- SHAREDLIB = libBlitPixie.so
-
- SRCDIR = Sources/
- INCDIR = Headers/
-
- #------------------------------------------------------------------------------
- # These are modified default build rules.
- #------------------------------------------------------------------------------
-
- .o:
- $(CC) -c $(CFLAGS) -I$(INCDIR) $(SRCDIR)$*.c
-
-
- #------------------------------------------------------------------------------
- # These are the objects that we want to include in the library.
- #-------------------------------------------------------------------------------
-
- OBJECTS =
- BlitPixieAllBit.o
- BlitPixieClear.o
- BlitPixieCodeCompiler.o
- BlitPixieColorkey.o
- BlitPixieDoubled.o
- BlitPixieDoubleRects.o
- BlitPixieFlip.o
- BlitPixieMask.o
- BlitPixieMaskCollision.o
- BlitPixieRect.o
- BlitPixieRLE.o
- BlitPixieRLECollision.o
- BlitPixieRLECompiler.o
- BlitPixieRotoZoomer.o
-
- #------------------------------------------------------------------------------
- # These are the targets.
- #------------------------------------------------------------------------------
-
- BlitPixie: $(LIB)
- BlitPixieLib: $(SHAREDLIB)
-
- $(LIB): $(OBJECTS)
- $(AR) -o $(LIB) $(OBJECTS)
-
- $(SHAREDLIB): $(OBJECTS)
- $(AR) -o $(SHAREDLIB) $(OBJECTS)
-
- clean:
- /bin/rm -f *.o *~ core
-
- clean-all: clean
- /bin/rm -f $(LIB) $(SHAREDLIB)
-